package com.chuangjiangx.member.basic.ddd.query;

import com.chuangjiangx.member.basic.ddd.dal.mapper.MbrAccountDalMapper;
import com.chuangjiangx.member.basic.ddd.dal.dto.MbrAccountDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author cj-ch
 * @date 2018/1/27 下午9:41
 */
@Component
public class MbrAccountQuery {
    @Autowired
    private MbrAccountDalMapper mbrAccountDalMapper;

    public MbrAccountDTO queryBymemberId(Long memberId){
        return mbrAccountDalMapper.queryByMemberId(memberId);
    }
}
